# 启用编译数据库生成（全局生效）
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# 设置最低CMake 版本要求
cmake_minimum_required(VERSION 3.10)

# 设置项目名称
project(AL_Cache VERSION 1.0.0 LANGUAGES CXX)

# 设置c++标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# 包含头文件目录
include_directories(
	${PROJECT_SOURCE_DIR}/al_cache
	${PROJECT_SOURCE_DIR}/al_cache/arc_cache
)

# 指定源文件目录下的所有.cpp 文件 
file(GLOB SOURCES "./test/*.cpp")

# 设置目标可执行文件
add_executable(main ${SOURCES})

# 清理中间的.o文件
set_target_properties(main PROPERTIES CLEAN_DIRECT_OUTPUT 1)
